package com.example.demo.pdfbox.tabel.concrete;

import com.example.demo.pdfbox.common.enums.BorderStyle;
import com.example.demo.pdfbox.common.enums.LineCapStyle;
import com.example.demo.pdfbox.tabel.PdfElement;

import java.awt.*;
import java.io.Serializable;

public class PdfLine extends PdfElement implements Serializable {
 /**
  * 起点横坐标
  */
 private Float x1;
 /**
  * 起点纵坐标
  */
 private Float y1;
 /**
  * 控制点1横坐标
  */
 private Float x2;
 /**
  * 控制点1纵坐标
  */
 private Float y2;
 /**
  * 控制点2横坐标
  */
 private Float x3;
 /**
  * 控制点2纵坐标
  */
 private Float y3;
 /**
  * 终点横坐标
  */
 private Float x4;
 /**
  * 终点纵坐标
  */
 private Float y4;
 /**
  * 线样式
  */
 private BorderStyle borderStyle=BorderStyle.SOLID;
 /**
  * 端点样式
  */
 private LineCapStyle lineCapStyle=LineCapStyle.BUTT;
 /**
  * 线宽
  */
 private float width;
 /**
  * 颜色
  */
 private Color color=Color.BLACK;

 public Float getX1() {
  return x1;
 }

 public PdfLine setX1(Float x1) {
  this.x1 = x1;
  return this;
 }

 public Float getY1() {
  return y1;
 }

 public PdfLine setY1(Float y1) {
  this.y1 = y1;
  return this;
 }

 public Float getX2() {
  return x2;
 }

 public PdfLine setX2(Float x2) {
  this.x2 = x2;
  return this;
 }

 public Float getY2() {
  return y2;
 }

 public PdfLine setY2(Float y2) {
  this.y2 = y2;
  return this;
 }

 public Float getX3() {
  return x3;
 }

 public PdfLine setX3(Float x3) {
  this.x3 = x3;
  return this;
 }

 public Float getY3() {
  return y3;
 }

 public PdfLine setY3(Float y3) {
  this.y3 = y3;
  return this;
 }

 public Float getX4() {
  return x4;
 }

 public PdfLine setX4(Float x4) {
  this.x4 = x4;
  return this;
 }

 public Float getY4() {
  return y4;
 }

 public PdfLine setY4(Float y4) {
  this.y4 = y4;
  return this;
 }

 public BorderStyle getBorderStyle() {
  return borderStyle;
 }

 public PdfLine setBorderStyle(BorderStyle borderStyle) {
  this.borderStyle = borderStyle;
  return this;
 }

 public LineCapStyle getLineCapStyle() {
  return lineCapStyle;
 }

 public PdfLine setLineCapStyle(LineCapStyle lineCapStyle) {
  this.lineCapStyle = lineCapStyle;
  return this;
 }

 public float getWidth() {
  return width;
 }

 public PdfLine setWidth(float width) {
  this.width = width;
  return this;
 }

 public Color getColor() {
  return color;
 }

 public PdfLine setColor(Color color) {
  this.color = color;
  return this;
 }
}
